remove extra std::forward in fwd/functor/reduce_sum loop#3323
Conversation
Jenkins Console Log Machine informationNo LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focalCPU: G++: Clang: |
|
@syclik can you reapprove? |
syclik
left a comment
There was a problem hiding this comment.
Nice. Moved the temp outside the loop as the last change. Approved.
|
Ok at least this one's faster
Best,
Andre Zapico
linkedin.com/in/andre-zapico
gitub.com/drezap
ME Information and Communication Engineering
University of Electronic Science and Technology of China
Consultant, Owner
likely llc
likelyllc.com
Stan Developer
mc-stan.org
BS Mathematical Sciences: Probabilistic Methods
BS Statistics
University of Michigan, Ann Arbor 2017
…On Mon, Jun 1, 2026, 4:35 PM Steve Bronder ***@***.***> wrote:
Merged #3323 <#3323> into develop.
—
Reply to this email directly, view it on GitHub
<#3323?email_source=notifications&email_token=ACY543DX5CA7K3755SX4THD45XSKHA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTENRSGA3DEMBXHE3DDJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#event-26206207961>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACY543FXOGB5XISDVYXPF3T45XSKHAVCNFSM6AAAAACY27OL22VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMRWGIYDMMRQG44TMMI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Summary
Fixes #3303 by removing extra
std::forwardinfwd/functor/reduce_sum.hppTests
No new tests. I think this is a pretty reasonable potential bug that is just an extra forward reference in a loop.
Checklist
Copyright holder: Steve Bronder
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
the basic tests are passing
./runTests.py test/unit)make test-headers)make test-math-dependencies)make doxygen)make cpplint)the code is written in idiomatic C++ and changes are documented in the doxygen
the new changes are tested